#pragma once 


namespace micro{


namespace files
{





class QDriveInfo  
{


	enum { DRIVE_HOST = 7 };

public:
	static float		GetFreeBytes(int nDrive); // in MB
	static float		GetTotalBytes(int nDrive); // in MB

	static QString		GetVolume(int nDrive);
	static QString		GetRoot(int nDrive);
	static QString		GetFullName(int nDrive);
	static TCHAR		GetLetter(int nDrive);
	static int			GetType(int nDrive);
    static int			GetPathType(LPCTSTR szPathName);
	static BOOL			IsDriveAvailable(int nDrive);
	 
	static int			GetDrive(LPCTSTR szPathName);
	static BOOL			IsMappedPath(LPCTSTR szPathName);
	static BOOL			IsRemotePath(LPCTSTR szPathName, BOOL bAllowFileCheck = TRUE);
	static BOOL			IsRemovablePath(LPCTSTR szPathName);
	static BOOL			IsFixedPath(LPCTSTR szPathName);
	static int			IsReadonlyPath(LPCTSTR szPathName); // -1 = no such path, else TRUE/FALSE
	static DWORD		GetSerialNumber(int nDrive);
    static BOOL			IsUNCPath(LPCTSTR szPathName);
};

 


}

}//micro